package com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.Baocunmidnum;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.LikuBaocunmidnum;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.NoChongfuSelect;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.QuedingMaterial;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.BaocunmidnumDao;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.LikuBaocunmidnumDao;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.NoChongfuSelectDao;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.ui.dbbase.QuedingMaterialDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig baocunmidnumDaoConfig;
    private final DaoConfig likuBaocunmidnumDaoConfig;
    private final DaoConfig noChongfuSelectDaoConfig;
    private final DaoConfig quedingMaterialDaoConfig;

    private final BaocunmidnumDao baocunmidnumDao;
    private final LikuBaocunmidnumDao likuBaocunmidnumDao;
    private final NoChongfuSelectDao noChongfuSelectDao;
    private final QuedingMaterialDao quedingMaterialDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        baocunmidnumDaoConfig = daoConfigMap.get(BaocunmidnumDao.class).clone();
        baocunmidnumDaoConfig.initIdentityScope(type);

        likuBaocunmidnumDaoConfig = daoConfigMap.get(LikuBaocunmidnumDao.class).clone();
        likuBaocunmidnumDaoConfig.initIdentityScope(type);

        noChongfuSelectDaoConfig = daoConfigMap.get(NoChongfuSelectDao.class).clone();
        noChongfuSelectDaoConfig.initIdentityScope(type);

        quedingMaterialDaoConfig = daoConfigMap.get(QuedingMaterialDao.class).clone();
        quedingMaterialDaoConfig.initIdentityScope(type);

        baocunmidnumDao = new BaocunmidnumDao(baocunmidnumDaoConfig, this);
        likuBaocunmidnumDao = new LikuBaocunmidnumDao(likuBaocunmidnumDaoConfig, this);
        noChongfuSelectDao = new NoChongfuSelectDao(noChongfuSelectDaoConfig, this);
        quedingMaterialDao = new QuedingMaterialDao(quedingMaterialDaoConfig, this);

        registerDao(Baocunmidnum.class, baocunmidnumDao);
        registerDao(LikuBaocunmidnum.class, likuBaocunmidnumDao);
        registerDao(NoChongfuSelect.class, noChongfuSelectDao);
        registerDao(QuedingMaterial.class, quedingMaterialDao);
    }
    
    public void clear() {
        baocunmidnumDaoConfig.clearIdentityScope();
        likuBaocunmidnumDaoConfig.clearIdentityScope();
        noChongfuSelectDaoConfig.clearIdentityScope();
        quedingMaterialDaoConfig.clearIdentityScope();
    }

    public BaocunmidnumDao getBaocunmidnumDao() {
        return baocunmidnumDao;
    }

    public LikuBaocunmidnumDao getLikuBaocunmidnumDao() {
        return likuBaocunmidnumDao;
    }

    public NoChongfuSelectDao getNoChongfuSelectDao() {
        return noChongfuSelectDao;
    }

    public QuedingMaterialDao getQuedingMaterialDao() {
        return quedingMaterialDao;
    }

}
